package agile.tools.domain;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Person extends BaseDomainObject {
	private String name;
	private Map<String, Address> addresses = new HashMap<String, Address>();
	private List<PhoneNumber> phones = new ArrayList<PhoneNumber>();
	private List<Account> accounts = new ArrayList<Account>();
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Map<String, Address> getAddresses() {
		return addresses;
	}
	public void addAddress(String key, Address address) {
		this.addresses.put(key, address);
	}
	public List<PhoneNumber> getPhones() {
		return phones;
	}
	public void addPhone(PhoneNumber phone) {
		this.phones.add(phone);
	}
	public List<Account> getAccounts() {
		return accounts;
	}
	public void addAccount(Account account) {
		this.accounts.add(account);
	}
	
//	public String toString() {
//		return name + "\n" + addresses + "\n" + phones + "\n" + accounts;
//	}
}